﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public class ListAndProcessData
{
    public ListAndProcessData()
    {

    }
    DataClassesDataContext da = new DataClassesDataContext();
    public List<TravelPlan> getTravelPlan(){
        var TravelPlan = da.TravelPlans.Select(c => c).ToList();
        return TravelPlan;
    }

    public List<BusCar> getBusCar()
    {
        var BusCar = da.BusCars.Select(c => c).ToList();
        return BusCar;
    }

    public List<BusType> getBusType()
    {
        var BusType = da.BusTypes.Select(c => c).ToList();
        return BusType;
    }

    public List<BusTicketDetail> getBusTicketDetail()
    {
        var BusTicketDetail = da.BusTicketDetails.Select(c => c).ToList();
        return BusTicketDetail;
    }
}
